package java_DesignPattern.CreatorPattern.PrototypePattern.ShallowClone;

/**
 * 三好学生奖状类
 */
public class JZh implements Cloneable{

    private String name;

    public void setName(String name){
        this.name = name;
    }

    //重写Object中的clone()方法---浅克隆
    public JZh clone() throws CloneNotSupportedException {
        return (JZh) super.clone();
    }

    public void show(){
        System.out.println(name+"是三好学生");
    }
}
